<?php
require_once dirname(__FILE__) . '/../includes/common.inc.php';
require_once dirname(__FILE__) . '/../includes/pdoorm.inc.php';

header('Content-Type: text/plain');

//$sql=MiscUtils::autopwd();

$sql="select e_oid from ns_v1customer";

$dataarr = getall($sql,1);

//print_r($dataarr);
foreach($dataarr as $oas)
{
  $sqlup="update ns_v1customer set  password =".MiscUtils::autopwd()." where e_oid = ".$oas['e_oid']."";
  
  sql_execute($sqlup);
}

//$pwd = MiscUtils::autopwd();

//echo $sql.','.$sql1;

//sql_execute($sql);
